$(function(){
    $("body").find("[data-widget]:not([data-vid])").each(function(index,obj){
        var o = $(obj), template = o.attr("data-widget");
        var view = vita.widget.require(template);
        if(view){
            var model = vita.widget.require(template + "_model");
            var options = {
                el : o
            };
            if(model != null){
                options.model = model["new"]();
            }
            view["new"](options);
        }
    });
});